﻿
<?php	

	// include("inc/joomlaInt.php");
	// include("inc/inc_configuration.php");
	
	
	$q= "SELECT * FROM $tbl_matches WHERE free=3 ORDER BY playDate DESC LIMIT 0,20";
	$qe= mysql_query($q);
	
	$i=0;
	echo '<marquee behavior=alternate onMouseOver="this.scrollAmount=0" onMouseOut="this.scrollAmount=3" scrollamount="3">';
	while ($row=mysql_fetch_object($qe))
	{
		$st="";
		if ($i<9) {$st="|";} else {$st="";}
		$hi=$row->homeT;
		$gi=$row->guestT;
		$hg=$row->homeG;
		$gg=$row->guestG;
		$mid=$row->id;
		
		$i++;
		
		
		echo "	<a href='spielbericht.php?matchID=$mid'><div>
				<img src='img/logos/$hi.png' width='24' height='24' alt='$hi' align='middle'>
				$hg:$gg 
				<img src='img/logos/$gi.png' width='24' height='24' alt='$gi' align='middle'>$st</div></a>";
	
	
	
	}
	echo "</marquee>";
	
	
	
?>
